package com.example.testp;

import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.Sprite;

import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Rect;
import android.util.Log;
import android.view.SurfaceHolder;
import android.view.SurfaceHolder.Callback;
import android.view.SurfaceView;

/***************注释2****************/

public class GameView2 extends SurfaceView implements Callback{
	String tag="GameView2";
	GameThread gameThread,gt2;
	
	public GameView2(Context context) {
		super(context);
		SurfaceHolder surfaceHolder=getHolder();
		surfaceHolder.addCallback(this);
		// TODO Auto-generated constructor stub
		//s=new Sprite(bmp,32,32);
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

	@Override
	public void surfaceChanged(SurfaceHolder arg0, int arg1, int arg2, int arg3) {
		// TODO Auto-generated method stub
		Log.v(tag, "surfaceChanged");
		
	}

	@Override
	public void surfaceCreated(SurfaceHolder arg0) {
		// TODO Auto-generated method stub
		Log.v(tag, "surfaceCreated");
		gameThread.start();
		gt2.start();
	}

	@Override
	public void surfaceDestroyed(SurfaceHolder arg0) {
		// TODO Auto-generated method stub
		Log.v(tag, "surfaceDestroyed");
		//gameThread.run=false;
		
	}

}
